/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.io.Serializable;

/**
 *
 * @author ibrahim
 */
public class Restaurant implements Serializable {
    private int id;
    private static int count=1;
    private String name;
    private int numStreet;
    private String city;
    private String postalCode;
    private String restaurateur;
    
    public Restaurant(String name, int numStreet, String city, String postalCode, String restaurateur){
        this.name=name;
        this.numStreet=numStreet;
        this.city=city;
        this.postalCode=postalCode;
        this.restaurateur=restaurateur;
        this.id=count;
        count++;
    }
    
    public Restaurant(int id, String name, int numStreet, String city, String postalCode, String restaurateur){
        this(name,numStreet,city,postalCode,restaurateur);
        this.id=id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the numStreet
     */
    public int getNumStreet() {
        return numStreet;
    }

    /**
     * @param numStreet the numStreet to set
     */
    public void setNumStreet(int numStreet) {
        this.numStreet = numStreet;
    }

    /**
     * @return the city
     */
    public String getCity() {
        return city;
    }

    /**
     * @param city the city to set
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * @return the postalCode
     */
    public String getPostalCode() {
        return postalCode;
    }

    /**
     * @param postalCode the postalCode to set
     */
    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    /**
     * @return the restaurateur
     */
    public String getRestaurateur() {
        return restaurateur;
    }

    /**
     * @param restaurateur the restaurateur to set
     */
    public void setRestaurateur(String restaurateur) {
        this.restaurateur = restaurateur;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }
    
    
    
}
